//
//  H_CoreDataDAL.h
//  Honey
//
//  Created by 贾亚涵 on 16/4/20.
//  Copyright © 2016年 贾亚涵. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface H_CoreDataDAL : NSObject

//用户-手机号重复检查结果
-(BOOL)checkRepeatedlyPhoneNumber:(NSString *)phoneN;
//用户-昵称重复检查结果
-(BOOL)checkRepeatedlyNick:(NSString *)nick;
//用户-注册信息存入
-(void)saveRegisterInfo:(NSString *)phone :(NSString *)nick :(NSString *)password;
;

//用户-登录验证
-(BOOL)checkLoginInfoPhoneNum:(NSString *)Phone PassWord :(NSString *)password;

//绑定用户验证(是否存在)
-(BOOL)checkBingDInfoPhoneNum:(NSString *)Phone;

//用户-查询是否绑定手机号
-(int)checkIsBingDPhoneNum:(NSString *)Phone;

//用户-正在申请的
-(void)applyForPhone:(NSString *)phone bdphone:(NSString *)bdphone;
//用户-被申请的账号
-(void)beApplyForPhone :(NSString *)phone bdPhone:(NSString *)bdphone B:(BOOL)b;
//查询绑定手机号
-(NSString *)checkBDPhone:(NSString *)phone;

//获取用户信息
-(NSDictionary *)getUserInfoFromDataWithPhone:(NSString *)phone;

//用户-更改头像
-(void)changeUserHeadPicWithPhone:(NSString *)phone Head:(NSData *)head;
//用户-更改昵称
-(void)changeUserNickWithPhone:(NSString *)phone Nick:(NSString *)nick;
//用户-更改密码
-(void)changeUserHeadPassWordWithPhone:(NSString *)phone Pass:(NSString *)passW;

@end
